//
//  ZanView.swift
//  JTYP
//
//  Created by Groot on 2017/12/14.
//  Copyright © 2017年 inspur. All rights reserved.
//

class ZanView: UIView {
    
    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var numLab: UILabel!
    
    var zanNum: Int = 0 {
        didSet {
            numLab.text = "\(zanNum)"
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
        
        let v: UIView = UINib.init(nibName: "ZanView", bundle: nil).instantiate(withOwner: self, options: nil).first as! UIView
        addSubview(v)
        v.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
    
}
